package net.maku.framework.security.wx;

import org.springframework.security.core.userdetails.UserDetails;
import org.springframework.security.core.userdetails.UsernameNotFoundException;

/**
 * @author Administrator
 */
public interface WxUnionIdUserDetailsService {

    /**
     * 通过微信的unionId加载用户信息
     *
     * @param unionId 微信的unionId
     * @return 用户信息
     * @throws UsernameNotFoundException 不存在异常
     */
    UserDetails loadUserByUnionId(String unionId) throws UsernameNotFoundException;
}
